<!DOCTYPE html>
{% block javascripts %}{% endblock %}
<html>
    <head>
        <meta charset="UTF-8" />
        <title>{% block titre %}Bienvenue{% endblock %}</title>
        {% block stylesheets %}
        <link rel="stylesheet" media="screen,projection" type="text/css" href="{{ asset('bundles/echecs/css/style.css') }}" />
        
        <script type="text/javascript" src="{{ asset('bundles/echecs/js/jquery-1.7.2.min.js') }}"></script>
        <script type="text/javascript" src="{{ asset('bundles/echecs/js/script.js') }}"></script>
        <script type="text/javascript" src="{{ asset('bundles/echecs/js/modernizr-2.6.1.min.js') }}"></script>
        
        <script >
     $(function() {       
      $('#loginBt').click(function() 
        {
            if($('#login_form').css('display') == "none")
                {
                   $('#login_form').show('fast', 'linear'); 
                }
           else
               {
                   $('#login_form').hide('fast', 'linear'); 
               }
        });
      });
</script>

        </script>
        
        {% endblock %}
        <link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
    </head>
    <body>
    
          
        <div >&nbsp;</div>
    
        <header id="master-header" class="clearfix" role="banner">

		<hgroup>
                    <div id="logo">
                    <a id="logo"href="{{ path('_index',{name:'Accueil'}) }}" title="ECMChess"></a>
                    </div>
			
			<h2 id="site-description">Le grand club de la ville bleue !</h2>
		</hgroup>

	</header>
	
           <nav class="main-navigation clearfix span12" role="navigation">
           
                <ul>
		  {% block navigation %}

                    {% for unepage in navigationP %}
                        
                        {% if page is defined %}
                            {% if page.nomPage == unepage.nomPage %}
                                <li  class="current"><a href="{{ path('_index',{name:unepage.nomPage}) }}">{{unepage.nomPage}}</a></li>
                           
                            {%else%}
                                <li ><a href="{{ path('_index',{name:unepage.nomPage}) }}">{{unepage.nomPage}}</a></li>
                            {% endif %}
                       {%else%}
                                <li ><a href="{{ path('_index',{name:unepage.nomPage}) }}">{{unepage.nomPage}}</a></li>
                       {% endif %}
                         
                    {% endfor %}
                         
                    


                    {% for unecat in navigationC %}
                            {% if categorie is defined %}
                                {% if categorie == unecat.nom %}
                                <li class="current"><a href="{{ path('_articles_cat',{name:unecat.nom}) }}">{{unecat.nom}}</a></li>
                            {%else%}
                                <li><a href="{{ path('_articles_cat',{name:unecat.nom}) }}">{{unecat.nom}}</a></li>
                            {% endif %}
                       {%else%}
                                <li><a href="{{ path('_articles_cat',{name:unecat.nom}) }}">{{unecat.nom}}</a></li>
                       {% endif %}
 
                    {% endfor %}

                {% endblock %}

              
		</ul>
                      
           </nav>
       
       
       <div id="content">
        

            <header class="entry-header">

                <h1 class="entry-title">{% block entryTitle %}{% endblock %}</h1>

             </header> 

             <div id="hentry">
                     {% block content %}{% endblock %}	
             </div>
	
        </div>
        
        
        <div id="sidebar">
            
            
            
            
            <ul>
                <li><a href="#" id="loginBt">Se connecter</a></li>
                <div id="login_form">
                <br>
                <input type="text"/>
                <br>
                <input type="text"/>
                <br>
                <input type="submit"/>
            </div>
            
                 {% block sidebar %}

                    {% for unecat in categories %}

                        <li><a href="{{ path('_articles_cat',{name:unecat.nom}) }}">{{unecat.nom}}</a></li>

                    {% endfor %}
                        
                {% endblock %}
            </ul>
        
            
        </div>

        <div id="footer" role="contentinfo">
	Copyrights C.Maibeche & D.Dominguez 
        </div>

</body>
</html>




